package cn.stylefeng.guns.modular.storeProcurement.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.storeProcurement.entity.StoreProcurementDetaild;
import cn.stylefeng.guns.modular.storeProcurement.model.params.StoreProcurementDetaildParam;
import cn.stylefeng.guns.modular.storeProcurement.model.result.StoreProcurementDetaildResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 门店采购单明细表 服务类
 * </p>
 *
 * @author wp
 * @since 2025-09-02
 */
public interface StoreProcurementDetaildService extends IService<StoreProcurementDetaild> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-09-02
     */
    void add(StoreProcurementDetaildParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-09-02
     */
    void delete(StoreProcurementDetaildParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-09-02
     */
    void update(StoreProcurementDetaildParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-09-02
     */
    StoreProcurementDetaildResult findBySpec(StoreProcurementDetaildParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-09-02
     */
    List<StoreProcurementDetaildResult> findListBySpec(StoreProcurementDetaildParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-09-02
     */
     LayuiPageInfo findPageBySpec(StoreProcurementDetaildParam param,String condition);

    LayuiPageInfo findGoodsPageBySpec(StoreProcurementDetaildParam storeProcurementDetaildParam, String o);

    void deleteByGoodsId(StoreProcurementDetaildParam storeProcurementDetaildParam);

    List<StoreProcurementDetaildResult> findListByGoodsId(String orderOutNumber, Long goodsId);

}
